package com.example.crm01.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.crm01.entity.user;
import com.example.crm01.mapper.UserMapper;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, user> implements UserService{
    @Override
    public user getUserByUsername(String username) {
        return baseMapper.selectOne(new QueryWrapper<user>().eq("username",username));
    }
}
